const prefix = 'api'
const api = {
  user: {
    login: `/${prefix}/user/login`,
    info: `/${prefix}/user/getUserInfo`,
    logout: `/${prefix}/user/logout`,
    list: `/${prefix}/user/list`
  },
  report: {
    query: `/${prefix}/report/queryReport`,
    publish: `/${prefix}/report/batchPublish`,
    upload: `/${prefix}/report/batchInsert`,
    imageUpload: `/${prefix}/report/batchInsertImages`
  },
  post: {
    // 用户未发布的文章的数量
    userPendingCount: `/${prefix}/post/pendingPostCount`
  },
  index: {
    list: `/${prefix}/post/list`,
    category: `/${prefix}/category/list`,
    // 查询首页显示的四个统计数量
    count: `${prefix}/report/queryPostCount`
  },
  detail: {
    article: `/${prefix}/post/detail`,
    siblings: `${prefix}/post/sideids`
  },
  vote: {
    submit: `/${prefix}/vote/submit`,
    result: `/${prefix}/vote/result`
  }
}
export default api
